<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>

<tiles:insertTemplate template="menu.jsp">
	<tiles:putAttribute name="body">
		<s:if test="''.equals(actionEndString)">
		</s:if><s:else>
			<script language="JavaScript">
				TargetDate = "<s:property value="actionEndString"/>";
				StartDate = "<s:property value="@pl.un4giv3n.mightvsmagic.utils.FormatterUtil@getSystemTime()"/>";
				BackColor = "black";
				ForeColor = "red";
				CountActive = true;
				CountStepper = -1;
				LeadingZero = true;
				DisplayFormat = "%%M%% Minut, %%S%% Sekund.";
				FinishMessage = "Akcja zakończona!";
			</script>
			<script language="JavaScript" src="./js/countdown.js"></script>
			<center><p id="cntdwn"></p></center>
		</s:else>
	</tiles:putAttribute>
</tiles:insertTemplate>
